package com.ruoyi.inventory.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 其他成本对象 t_cost
 *
 * @author xwj
 * @date 2024-11-12
 */
@TableName("t_cost")
@Data
public class Cost extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 成本类型id
     */
    @Excel(name = "成本类型id")
    @ApiModelProperty("成本类型id")
    private Long storeId;
    @TableField(exist = false)
    private String storeName;

    /**
     * 客户id
     */
    @Excel(name = "客户id")
    @ApiModelProperty("客户id")
    private Long customerId;
    @TableField(exist = false)
    private String customerName;

    private Double amount;
    /**
     * 使用时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("使用时间")
    private Date effectDate;

    /** 创建人id */
    @Excel(name = "创建人id")
    @ApiModelProperty("创建人id")
    private Long createId;
    private Date createTime;
    private String createBy;

    /** 更新人id */
    @Excel(name = "更新人id")
    @ApiModelProperty("更新人id")
    private Long updateId;
    private Date updateTime;
    private String updateBy;

    private String remark;


    // 查询条件 或 其他参数
    @TableField(exist = false)
    private String startTime;
    @TableField(exist = false)
    private String endTime;


}
